//
//  MusicModel.m
//  哎游
//
//  Created by 康守帅 on 15-1-7.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MusicModel.h"

@implementation MusicModel

- (void)dealloc
{
    [_trackId release];
    [_uid release];
    [_playUrl64 release];;
    [_playUrl32 release];
    [_downloadUrl release];
    [_title release];
    [_duration release];
    [_processState release];
    [_createdAt release];
    [_coverSmall release];
    [_coverLarge release];
    [_nickname release];
    [_smallLogo release];
    [_userSource release];
    [_albumId release];
    [_albumTitle release];
    [_albumImage release];
    [_orderNum release];
    [_opType release];
    [_refUid release];
    [_refNickname release];
    [_refSmallLogo release];
    [_commentContent release];
    [_likes release];
    [_playtimes release];
    [_comments release];
    [_shares release];
    [_status release];
    [super dealloc];
}

- (instancetype)initWithMusicID:(NSNumber *)musicId title:(NSString *)title author:(NSString *)author urlStr:(NSString *)urlStr imageUrl:(NSString *)imageUrl
{
    self = [super init];
    if (self) {
        self.trackId = musicId;
        self.title = title;
        self.nickname = author;
        self.playUrl64 = urlStr;
        self.imageUrl = imageUrl;
    }
    return self;
}

+ (instancetype)musciWithMusicID:(NSNumber *)musicId title:(NSString *)title author:(NSString *)author urlStr:(NSString *)urlStr imageUrl:(NSString *)imageUrl
{
    MusicModel *music = [[MusicModel alloc] initWithMusicID:musicId title:title author:author urlStr:urlStr imageUrl:imageUrl];
    return [music autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (id)valueForKey:(NSString *)key
{
    return @"";
}

@end
